﻿using AdventureWorks.Domain;
using FluentNHibernate.Mapping;
namespace AdventureWorks.DataAccess.Mappings
{
    public class SalesOrderMapping : ClassMap<SalesOrder>
    {
        public SalesOrderMapping()
        {
            Schema("Sales");
            Table("SalesOrderHeader");
            Id(x => x.Id, "SalesOrderId").GeneratedBy.Native();
            Map(x => x.DueDate);
            Map(x => x.OrderDate);
            Map(x => x.RevisionNumber);
            Map(x => x.ShipDate);
            
        }
    }
}
